% Vivian Chu
% 28 Nov 2011
% CIS 520 Project

% Assumes train, test are already loaded

% Create new training set and test set using helpful and title.  The
% functions make_sparse_title and make_helpful create the extra features
% and finally they are squished together with the original feature set to
% make one large sparse matrix to be fed into lin_liblinear

%addpath liblinear

%% Training set (All of X)
titleX = make_sparse_title(train);
helpfulX = make_helpful(train);

% Join matrix into one large feature matrix
%Xall = [X titleX helpfulX];
XhelpTitle = [titleX helpfulX];

%% Test set (All of Xtest)

title_test_x = make_sparse_title(test,size(titleX, 2));
helpful_test_x = make_helpful(test);

% Join matrix
%XtestAll = [Xtest title_test_x helpful_test_x];
XtesthelpTitle = [title_test_x helpful_test_x];